<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../vue.js"></script>
</head>

<body>
  <div id="app">
    <component-a>
      body...
      <h1>gp18</h1>
    </component-a>
  </div>

  <script type="text/template" id="temp">
  <div>
    <div>header</div>
      <main>
        <slot></slot>
      </main>
    <footer>
      footer
    </footer>

  </div>
  
  </script>




  <script>

    Vue.component('componentA', {
      template: "#temp"
    })


    var vm = new Vue({
      el: "#app"
    })
  </script>

</body>

</html>